<?php
//接口参数秘钥
const APP_SECRET = 'hje11shkeo479';
//默认头像
const DEFAULT_AVATAR = 'http://media1.yunlutong.com/tmp/ylthead.png';
/*用户资产锁KEY*/
const LOCK_USER_BALANCE = 'USER_BALANCE_';
//资金类型
const BALANCE_COIN = 1;//金币
const BALANCE_MONEY = 2;//余额
//资金状态
const BALANCE_ENABLE = 1;//正常
const BALANCE_DISABLE = 2;//冻结
//交易买卖
const TRADE_BUY = 1;
const TRADE_SALE = 2;
/* 阿里OSS配置文件*/
const ALI_OSS_ACCESSKEYID = 'KwhSooZM20m3YF3R';
const ALI_OSS_ACCESSKEYSECRET = 'LbgXEHF67vAhi4MRduLJqm42tpHkGP';
const ALI_OSS_ENDPOINT = 'oss-cn-shanghai.aliyuncs.com';
const ALI_OSS_BUCKET = 'dddgame';
const ALI_OSS_URL = 'http://media1.yunlutong.com';
//静态文件目录
const STATIC_FILE_DIR = '/var/www/staticRes/';
//融云
const RC_APPKEY = 'x18ywvqfxncqc';
const RC_APPSECRET = 'vQLBL8B3qn';
//websockt server
const WEBSOCKT_SERVER = 'ws://127.0.0.1:8076';
//订单类型
const ORDER_TYPE_SHOP = 1;
const ORDER_TYPE_CHARGE = 2;
//订单支付类型
const ORDER_BALANCE_PAY = 1;
const ORDER_WX_PAY = 2;
const ORDER_ALI_PAY = 3;
//图灵
const TULING_API_URL = 'http://www.tuling123.com/openapi/api';
const TULING_API_KEY = '2b2ea4d046f24bdfaf2b3eb7c296414a';

//redis锁KEY
const USER_BALANCE_RKEY = 'USER_BALANCE_';//用户资产

const USER_STOCK_BUY_RKEY = 'STOCK_TRADE_BUY_RKEY_';//股票买KEY
const USER_STOCK_BUY = 'STOCK_TRADE_BUY_';//股票买
const USER_STOCK_BUY_PRIICE = 'USER_STOCK_BUY_PRIICE_';//股票买价格

const USER_STOCK_SALE_RKEY = 'STOCK_TRADE_SALE_RKEY_';//股票卖KEY
const USER_STOCK_SALE = 'STOCK_TRADE_SALE_';//股票卖
const USER_STOCK_SALE_PRIICE = 'USER_STOCK_SALE_PRIICE_';//股票卖价格

//任务队列
const TASK_SERVER_IP = '127.0.0.1';
const TASK_SERVER_PORT = 8077;

//K线图
const KLINE_TYPE_MIN = 1;//分时
const KLINE_TYPE_DATEK = 2;//日K
const KLINE_TYPE_WEEKK = 3;//周K
const KLINE_TYPE_MONK = 4;//月K
const KLINE_TYPE_YEARK = 5;//年K


